@echo off

viewbin IPL.bin >".\temp.txt"
for /f "tokens=4,7 delims=, " %%i in ('findstr /c:"Image Start" ".\temp.txt"') do (
	set a=%%i 
	set l=%%j
)
del ".\temp.txt"
cvrtbin -r -a %a% -l %l% -w 32 IPL.bin

viewbin FLASH.bin >".\temp.txt"
for /f "tokens=4,7 delims=, " %%i in ('findstr /c:"Image Start" ".\temp.txt"') do (
	set a=%%i 
	set l=%%j
)
del ".\temp.txt"
cvrtbin -r -a %a% -l %l% -w 32 FLASH.bin
